package com.blog.basic.util;

import lombok.Data;

@Data
public class AjaxResult extends RuntimeException {
    private Boolean success = true;
    private String msg = "操作成功";
    private Object resultObj=null;



    public AjaxResult(){
    }

    public AjaxResult(Boolean success, String msg) {
        super(msg);
        this.success = success;
    }

    public AjaxResult(Object resultObj){
        this.success = success;
        this.msg = msg;
        this.resultObj = resultObj;
    }

   public AjaxResult(Boolean success, String msg, Object resultObj) {
        this.success = success;
        this.msg = msg;
        this.resultObj = resultObj;
    }



}


